//Copyright (C) 2013 Julio Espindola
//
//This file is part of VSize Checkers.
//
//VSize Checkers is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//VSize Checkers is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with VSize Checkers.  If not, see <http://www.gnu.org/licenses/>.

package checkers;

import java.util.ArrayList;

abstract class Piece
{   
    static final byte PIECE = (byte) 2; //0b0000_0010;
    static final byte BLACK = (byte) 4; //0b0000_0100;
    static final byte QUEEN = (byte) 8; //0b0000_1000;
    
    static final byte EMPTY = (byte) 0; //0b0000_0000;
    static final byte WHITE_PAWN = (byte) 2; //0b0000_0010;
    static final byte BLACK_PAWN = (byte) 6; //0b0000_0110;
    static final byte WHITE_QUEEN = (byte) 10; //0b0000_1010;
    static final byte BLACK_QUEEN = (byte) 14; //0b0000_1110;
    
    static final byte CLEAR = (byte) -15; //(byte) 0b1111_0001;
    static final byte GET = (byte) 14; //(byte) 0b0000_1110;
    
    protected final byte color;
    static int maxSize;
    
    Piece(byte color)
    {
        this.color = color;
    }
    
    protected abstract ArrayList<Move> getMoves(Board b, int square);
    protected abstract void getJumps(Board b, int square, ArrayList<Move> arr, MJumps jumps);
}
